package com.hmyuan.webdesktop.util;

import javax.servlet.http.HttpServletRequest;

import com.hmyuan.webdesktop.domain.User;

public class UserUtil {

	public static Integer getCurrentUseId(HttpServletRequest rq){
        User user = (User) rq.getSession().getAttribute("current_user");
        if(user==null) {
        	return null;
        }else {
        	return user.getId();
        }
	}
}
